import request from '@/utils/request';

export async function sendList(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/send/list', {
    params,
  });
}

export async function batchRecordlist(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/send/batchRecordlist', {
    params,
  });
}

export async function getInfoByNameOrPhone(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/user/getInfoByNameOrPhone', {
    params,
  });
}

export async function sendPerson(data?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/send/sendPerson', {
    method: 'POST',
    data,
  });
}

export async function getValueAndTextList(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/sys/getValueAndTextList', {
    params,
  });
}

export async function getGroupListByAid(params?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/send/getGroupListByAid', {
    params,
  });
}

export async function sendBatch(data?: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/send/sendBatch', {
    method: 'POST',
    data,
  });
}